package com.bjpowernode.mvc.model.param;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class RealNameParam {

    @NotNull(message = "必须提供姓名")
    @Size(min = 2,max = 9,message = "姓名至少两个字符")
    private String name;

    @NotNull(message = "必须提供身份证")
    @Size(min = 18,message = "身份证号格式错误")
    private String idCard;
}
